-- GENERATED SPELL FOR [Gryphon Rider Guard] --


function spell0_15241(pUnit, Event) --@Stormhammer,n/a--
pUnit:FullCastSpellOnTarget(38182,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15241', 17000, 1)
end

function Sorts_15241(pUnit, Event)
local choix_sorts_15241 = math.random(0, 0)
if choix_sorts_15241 == 0 then
pUnit:RegisterEvent('spell0_15241', 1, 1)
end
end

function mob15241_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15241', math.random(1500, 3000), 1)
end

function mob15241_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15241_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15241_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15241, 1, 'mob15241_Action')
RegisterUnitEvent(15241, 2, 'mob15241_Leave')
RegisterUnitEvent(15241, 3, 'mob15241_Kill')
RegisterUnitEvent(15241, 4, 'mob15241_Die')
